s = 1
x=eval(input("请输入一个整数："))
for i in range(1,x+1):
    s=s*i
print(s)